6. how to create function block

你好。
Hello.

在工作室中,我们将学习如何为左侧的每个单词创建一个功能性外观。
In the studio, we will learn how can we create a functional look into each word three into the left side.

您将看到 FP 并形成女性功能块。
You will see FP and form a women's function block.

乐趣意味着功能,功能、块和功能之间是有区别的。
Fun means function and there's a difference between function, block and functions.

但现在我们首先要了解什么是功能块以及如何进行创意?
But now we will learn firstly, what is a function block and how can be creative?

而在这里你可以看到FPN有趣的部分进入程序区。
And here you can see FPN fun part into the program area.

我将直接进行编程,我会说新的数据和数据类型现在将起作用,并且数据将起作用或者可以为您提供 FPP。
I will just go to program and I will say a new data and data type is going to be now functional and the data is functional or can be FPP for you.

还有这个功能博客的编程语言是什么,可以摆弄或者稍后安装,我们就可以离开了。
And what is the programming language of this function blog and it can be fiddled or installed later and we can leave.

是后来的事了。
It is later.

还有这个功能会被使用吗?
And is this function going to be used?

使能和使能的意思是,使能该功能,阻止输入,然后使能输出。
Enable and enable means, enable this function, block input, then enable out.

我们可以说是或否,但我会说是,我将向您展示启用任何块以及目的地和类型、子例程类型或配置文件。
We can say yes or no, but I will say yes and I will show you enabling any block and the destination and type, subroutine type or a profile.

这可以是 Roumain,我会说“确定”,进入左侧,您将在 FP 下看到并形成一个配置文件,如果人员、您和本地标签以及该程序在该程序下激活,但您将看到编程区域现在是活性。
This can be Roumain and I will say OK and into the left side, you will see under the FP and form a profile if people, you and local label and the program is activated under the program, but you will see the programming area is now activated.

我们处于正确的模式,然后我们就可以开始了。
We are in the right mode and then we can start.

这里我们如何编写策略程序呢?
How can we write a policy program here?

基本上,我需要转到本地标签区域以及本地标签和标签名称。
And basically, I need to go to local label area and local label and label name.

例如,我可以说,开始吧。
I can say, for example, start OK.

在这里我要说的是电机前进。
And here I will say motor forward.

像这样的输出和数据类型将是合适的,您可以从这里出售它,让我们选择位,并且还会有牛肉,因为在这里出售它的类,这意味着什么?
Output like this and data type is going to be fit, and you can sell it from here, let's select the bit and there's going to be also beef and because sell it the class here, what does that means?

这将是功能外观的输入,因为将输入开始。
This is going to be input of the functional look because start is going to be input.

我会说可变输入和电机前向队列意味着电机输出。
And I will say variable input and motor forward queue means motor output.

这是一个随机标签,这只是一个示例。
This is a randomly label and this is a just an example.

我会说电机正向输出的可变输出。
And I will say variable output of the motor forward output.

好的,那么这已经准备好进入程序了,但我就在这里,L.D..
OK, then this is ready into the program, but I will just right here, L.D..

启动你会看到本地标签,我们刚刚创建了一个启动。
Start and you will see local label, we just created a start.

而且标签的颜色在我们写作时也会改变,您现在将集中精力聆听 L.D 的座右铭。
And also the color of the label is changed while we are writing, you will focus now focus to hear L.D motto forward.

意味着您将看到标签的符号已更改。
Means you will see the symbol of the labels is changed.

这是一个功能块符号。
This is a function block symbol.

我会点击它,这是正确的。
I will let click that and it is right.

好的。
OK.

现在我要去。
Now I will go to.

程序,但是。
Program, but.

在这里我们可以得到功能障碍第二块。
And here we can get dysfunction block two here.

如果像这样的拖放方法可以,并且本地劳动力或全球劳动力,我将创建它。
And if the drag and drop method like that OK, and local labor or global labor, I will create it.

我会用这个功能来看看和溜。
I will use this function will look and slip.

没关系。
It doesn't matter.

我们也可以将其创建为全局的。
We can create it as global also.

我们有本地和全球之间的区别。
And we have the difference between local and global.

或者我们可以创造另一个关于本地和全球差异的故事,但这并不重要。
Or we can create another story about the differences between local and global, but doesn't matter.

如果你站在一旁,那么功能障碍布洛克的名字将会是。
And the name of dysfunction Bullock is going to be if people you're on the square one.

我只会说,好吧,就这样。
And I will just say, OK, that's all.

你会看见。
You will see.

该功能的外观将是聆听和洞察功能的外观。
The of this function will look to hear and insight the function look.

你会看到,启用和启用出来,好吗?
You will see, enable and enable out, OK?

你可以在这里看到。
You can see here.

你可以看到我们可以。
You can see we can.

它是一个启动按钮并启用,因此,我们可以像这样将它放在一起,好吗?
It a start button and enabling OK, because of that, we can put it together like that, OK?

但第八个位置是不正确的。
But the eighth position is incorrect and.

我们可以做什么?
What can we do?

首先,我会写下我的联系方式,例如,启动按钮已激活。
Firstly, I will write you my contact like, for example, start button is activated.

启动按钮被激活也开始。
The Start button is activated also start.

我将只使用类似的启动按钮将启用并且启动按钮将启动,好吗?
I will just use the similar start button will enable and also start button will start, OK?

我会这样说。
And I will put it like that.

我会把它连接起来。
I will make it connection.

和这个。
And this.

OK,然后你就会看到这是一个连接。
OK, then you will see this is a connection.

再次,我将在这里建立连接。
Again, I will put a connection to here.

让我再次找到一个连接点。
And let me find a connection point again.

好的。
OK.

但一个好的位置是。
But a good position is.

不正确。
Not correct.

它正在给予它。
It's giving it.

好的,现在已连接并启用。
OK, now it's connected and enabled.

我们在这里放什么并不重要,只要我们能听到电机输出,例如,电机前进。
It doesn't matter what we put here, just the motor output we can say to hear, for example, out motor forward.

比我能说的相似。
The similar than I can tell it is like.

它连接到这里,好吗?
And it is connected to here, OK?

或者我们已经可以写信给您,例如,l.D.
Or already we can write you, for example, l.D.

像那样的开始按钮,我会说,好的,然后它已连接,但没关系。
Start button like that, and I will say, OK, then it's connected, but doesn't matter.

那我就回去了。
Then I will go back.

然后我们就准备好了。
Then we are ready.

我会去转换并重建所有内容,然后我会说,好吧,然后我们就会看到。
I will just go to convert and rebuild all, and I will say, OK, then we will see.

有什么问题吗?
Are there any problem?

不,没有错误。
No, there's no error.

我将进入模拟器,我们将看到我们的功能外观是否正在运行,或者不在功能外观内部,我们创建了一个剩余的项目。
Just I will go to simulator and we will see is our functional look is running or not inside of the functional look, we created a project left.

点击这里。
Click here.

我离开了伊朗,然后我就可以看到函数里面有什么了。
I left Iran, then I can see what is inside the function.

看,如果你开始活动,我们有一个输出,这样我们就可以进入程序区域,然后我们可以激活开始按钮。
Look, if you start active, we have an output so we can go to program area and we can activate start button.

让我们激活它。
Let's activate it.

该区域已启用并且启动输入现已激活。
It's zone that is enabled and the start input is active now.

所以马达。
So motor.

向我转发的是福特汽车,因为输出已激活且功能失调,输出变量输出已激活,我的电机转发线圈,好吧,那是关闭的。
Forward to me is Ford Motor for output is activated and dysfunctional, output variable output is activated, my motor forward coil, OK, that's off.

然后让开始按钮落下。
And then let's make start button falls.

然后您将看不到任何输出。
Then there is no output you will see.

尽管如此,我仍然可以看到输出被激活是因为原因。
And still, I can see the output is activated because of why.

我们先看一次吧。
Let's take a look once.

嗯,因为这个东西仍然处于活动状态,所以可能是因为输入处于活动状态,但这并不重要。
Um, because this stuff is still active, so maybe it is because of the input is active, but it doesn't matter.

只是我要去听听这个启动是否被激活。
Just I will go to hear this start is activated.

为什么?
Why?

我只。
I will just.

80S输出到这里开始激活供电。
80S outputs to here start is activate supply.

未启用此功能。
This is not enabled.

我将开始放置东西,但将其关闭,因为我知道启动按钮不会启用功能障碍,因为它会保留输出。
I will just start putting stuff, but enabled that off because of I know because the start button is not enabling dysfunction because of it is keeping the output.

所以也许把它改成另一个名字会更好。
So maybe it is better to change it to another name.

例如,我将在这里写下三个。
And I will write here like three, for example.

但我们的心情不太好。
But we are not in the right mood.

这就是这里和。
This right here and.

好的,现在我将再次进入模拟器,我们将看看为什么会出现这种情况。
OK, now I will go to simulator again and we will see why this is keeping.

但不行,重置它并转换完成完美,我会说,好吧,然后转换,然后我们可以停止模拟。
But no, reset it and convert complete perfect, and I will say, OK, then converted, then we can stop the simulation.

并开始服用。
And start taking.

我将关闭它,该条目将始终启用,我会的。
And I will close it, that entry will be enabled always, I will.

我的职责是监督、观察并继续下去。
It is my duty to monitor, watch and make it on.

现在确实如此。
This is true now.

此功能已启用,因此您将看到启动按钮是否从监视器区域激活,我们的启动按钮已关闭且输出已关闭。
This is enabled, so you will see if the start button is activated from the monitor being area we have the start button is off and output is off.

启动按钮已激活,然后再激活,然后启动按钮关闭。
Start button is activated, then activate it, then start button is off.

那么就没有办法因为启用错误而停止。
Then there is no way to stop because of what was the mistake to enabling.

由于此功能块,它连接了启动按钮。
It was connected start button because of this function block.

这是启用吗?
Was this enabling?

但它保留了输出,因为当时尚未启用此功能。
But it was keeping the output because of this is not enabled that moment.

它并不是做或处理函数内部的指令,但是并没有关系可以学习。
It is not doing or processing the instructions inside the functional, but and does not matter be learned.

我们如何创建下面的函数?
How can we create a function below?

我们如何定义变量以及如何创建变量输入或变量输出?
How can we define a variable and how can we create a variable input or variable output?

我们如何将其运用到政策计划中?
And how can we use it into policy program?

如果您在任何时候遇到困难,可以立即向我提问,请查看额外的音频。
If you are stuck at any point and you can ask me a question immediately, see your into extra audio.